<template>
  <div class="base_grid">
    <van-grid square :border="false" class="grid" :clickable="true">
      <van-grid-item v-for="item of grid" :key="item">
        <svg class="icon" aria-hidden="true">
          <use :xlink:href="item.icon"></use>
        </svg>
        <span>{{ item.title }}</span>
      </van-grid-item>
    </van-grid>
  </div>
</template>

<script lang="ts" setup>
import { defineProps, withDefaults } from 'vue'

const props = withDefaults(
  defineProps<{
    grid: any
  }>(),
  {}
)
</script>

<style scoped lang="less">
.base_grid {
  width: 100%;
  height: 100%;
  .grid {
  }
}
</style>
<!--       <van-grid-item>
        <svg class="icon" aria-hidden="true">
          <use xlink:href="#icon-tuijian"></use>
        </svg>
        <span>最近播放</span>
      </van-grid-item>
      <van-grid-item>
        <svg class="icon" aria-hidden="true">
          <use xlink:href="#icon-tuijian"></use>
        </svg>
        <span>最近播放</span>
      </van-grid-item>
      <van-grid-item>
        <svg class="icon" aria-hidden="true">
          <use xlink:href="#icon-tuijian"></use>
        </svg>
        <span>最近播放</span>
      </van-grid-item>
      <van-grid-item>
        <svg class="icon" aria-hidden="true">
          <use xlink:href="#icon-tuijian"></use>
        </svg>
        <span>最近播放</span>
      </van-grid-item>
      <van-grid-item>
        <svg class="icon" aria-hidden="true">
          <use xlink:href="#icon-tuijian"></use>
        </svg>
        <span>最近播放</span>
      </van-grid-item>
      <van-grid-item>
        <svg class="icon" aria-hidden="true">
          <use xlink:href="#icon-tuijian"></use>
        </svg>
        <span>最近播放</span>
      </van-grid-item>
      <van-grid-item>
        <svg class="icon" aria-hidden="true">
          <use xlink:href="#icon-tuijian"></use>
        </svg>
        <span>最近播放</span>
      </van-grid-item> -->
